package am.fp.events
{                                    
  import flash.events.Event;
  
  public class ModeEvent extends Event
  {  
    public static const CHANGE: String = "changeMode";
    public static const MODE_GRAB: String = "grab";
    public static const MODE_TEXT: String = "text";
    
    private var m_mode: String;
    public function get mode(): String
    {
      return m_mode;
    }
    
    public function ModeEvent(type: String, mode: String)
    {
      if (mode != MODE_GRAB && mode != MODE_TEXT)
        mode = MODE_GRAB;
      m_mode = mode;
      super(type, false, false);
    }
  }
}
